import 'dart:io';

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:testflutte/relsease/SplashPage.dart';

import 'package:testflutte/relsease/main_page.dart';

void main() => runApp(MyApp());

class MyApp extends StatefulWidget {
  @override
  State<StatefulWidget> createState() {
    return MyAppState();
  }
}

class MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    if (Platform.isAndroid) {
      //
      SystemUiOverlayStyle systemUiOverlayStyle =
          SystemUiOverlayStyle(statusBarColor: Colors.transparent);
      SystemChrome.setSystemUIOverlayStyle(systemUiOverlayStyle);
    }
    return MaterialApp(
      routes: {'/MainPage': (ctx) => MainPage()},
      theme: ThemeData.light().copyWith(
        primaryColor: Colors.grey,
        accentColor: Colors.grey,
        indicatorColor: Colors.white,
      ),
      home: SplashPage(),
    );
  }
}
